.pull-left {
  float: left !important;
}

.pull-right {
  float: right !important;
}

.clearfix {
  clear: both;
}
.btn-user1 .imguser1 {
  background-image: url(../images/验证.png);
}
.btn-user2 .imguser2 {
  background-image: url(../images/下载.png);
}
.btn-user3 .imguser3 {
  background-image: url(../images/串口监视器.png);
}
.btn-user1:hover .imguser1 {
  background-image: url(../images/验证-1.png);
}
.btn-user2:hover .imguser2 {
  background-image: url(../images/下载-1.png);
}
.btn-user3:hover .imguser3 {
  background-image: url(../images/串口监视器-1.png);
}

.blocklyDraggable {
  border: 1px solid black;
  fill: rgb(123, 123, 123);
}

/* 左边导航栏显示 */
.blocklyWorkspace {
  display: contents;
}

.blocklySvg {
  background-color: #fff;
}

.blocklyWidgetDiv {
  display: none;
  position: absolute;
  z-index: 99999;
}

.blocklyNonSelectable {
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.blocklyWsDragSurface {
  display: none;
  position: absolute;
  overflow: visible !important;
  top: 0;
  left: 0;
}

.blocklyBlockDragSurface {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: visible !important;
  z-index: 50;
}

.blocklyTooltipDiv {
  background-color: #ffffc7;
  border: 1px solid #ddc;
  box-shadow: 4px 4px 20px 1px rgba(0, 0, 0, .15);
  color: #000;
  display: none;
  font-size: 9pt;
  opacity: 0.9;
  padding: 2px;
  position: absolute;
  z-index: 100000;
}

.blocklyResizeSE {
  cursor: se-resize;
  fill: #aaa;
}

.blocklyResizeSW {
  cursor: sw-resize;
  fill: #aaa;
}

.blocklyResizeLine {
  stroke: #888;
  stroke-width: 1;
}

.blocklyHighlightedConnectionPath {
  fill: none;
  stroke: #fc3;
  stroke-width: 4px;
}

.blocklyPathLight {
  fill: none;
  stroke-linecap: round;
  stroke-width: 1;
}

.blocklySelected>.blocklyPath {
  stroke: #fc3;
  stroke-width: 3px;
  stroke: rgb(255, 68, 175);
}

.blocklySelected>.blocklyPathLight {
  display: none;
}

.blocklyDragging {
  cursor: url("./static/media/handclosed.cur"), auto;
  cursor: grabbing;
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
}

.blocklyDraggable:active {
  cursor: url("./static/media/handclosed.cur"), auto;
  cursor: grabbing;
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
}

.blocklyBlockDragSurface .blocklyDraggable {
  cursor: url("./static/media/handclosed.cur"), auto;
  cursor: grabbing;
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
}

.blocklyDragging.blocklyDraggingDelete {
  cursor: url("./static/media/handdelete.cur"), auto;
}

.blocklyToolboxDelete {
  cursor: url("./static/media/handdelete.cur"), auto;
}

.blocklyDragging>.blocklyPath,
.blocklyDragging>.blocklyPathLight {
  fill-opacity: .8;
  stroke-opacity: .8;
}

.blocklyDragging>.blocklyPathDark {
  display: none;
}

.blocklyDisabled>.blocklyPath {
  fill-opacity: .5;
  stroke-opacity: .5;
}

.blocklyDisabled>.blocklyPathLight,
.blocklyDisabled>.blocklyPathDark {
  display: none;
}




.blocklyBubbleText {
  fill: #000;
}

.blocklyFlyout {
  border-right: 1px solid hsla(0, 0%, 0%, 0.15);
  border-top: 1px solid #d9d9d9;
}
.blocklyFlyoutButton {
  fill: #888;
  cursor: default;
}

.blocklyFlyoutButtonShadow {
  fill: #666;
}

.blocklyFlyoutButton:hover {
  fill: #aaa;
}

.blocklyFlyoutLabel {
  cursor: default;
}

.blocklyFlyoutLabelBackground {
  opacity: 0;
}

.blocklyFlyoutLabelText {
  fill: #000;
}

.blocklyHidden {
  display: none;
}

.blocklyFieldDropdown:not(.blocklyHidden) {
  display: block;
}

.blocklyIconGroup {
  cursor: default;
}

.blocklyIconGroup:not(:hover),
.blocklyIconGroupReadonly {
  opacity: .6;
}

.blocklyIconShape {
  fill: #00f;
  stroke: #fff;
  stroke-width: 1px;
}

.blocklyIconSymbol {
  fill: #fff;
}

.blocklyMinimalBody {
  margin: 0;
  padding: 0;
}

.blocklyCommentTextarea {
  background-color: #ffc;
  border: 0;
  margin: 0;
  padding: 2px;
  resize: none;
}

/*图标设置的样式 */
.blocklyMutatorBackground {
  fill: #fff;
  stroke: #ddd;
  stroke-width: 1;
  width: 50%;
  height: 50%;

}

.blocklyFlyoutBackground {
  fill: rgba(255, 255, 255, 255);
  height: 600px;

}

.blocklyMainWorkspaceScrollbar {
  z-index: 20;
}


.blocklyFlyoutScrollbar {
  z-index: 30;
}

.blocklyScrollbarHorizontal,
.blocklyScrollbarVertical {
  position: absolute;
  outline: none;
}

.blocklyScrollbarBackground {
  opacity: 0;
}

.blocklyScrollbarHandle {
  fill: #ccc;
}

.blocklyScrollbarBackground:hover+.blocklyScrollbarHandle,
.blocklyScrollbarHandle:hover {
  fill: #bbb;
}

.blocklyFlyout .blocklyScrollbarHandle {
  fill: #bbb;
}

.blocklyFlyout .blocklyScrollbarBackground:hover+.blocklyScrollbarHandle,
.blocklyFlyout .blocklyScrollbarHandle:hover {
  fill: #aaa;
}

.blocklyInvalidInput {
  background: #faa;
}

.blocklyAngleCircle {
  stroke: #444;
  stroke-width: 1;
  fill: #ddd;
  fill-opacity: .8;
}

.blocklyAngleMarks {
  stroke: #444;
  stroke-width: 1;
}

.blocklyAngleGauge {
  fill: #f88;
  fill-opacity: .8;
}

.blocklyAngleLine {
  stroke: #f00;
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.blocklyContextMenu {
  border-radius: 4px;
}

.blocklyDropdownMenu {
  padding: 0 !important;
}

.blocklyWidgetDiv .goog-option-selected .goog-menuitem-checkbox,
.blocklyWidgetDiv .goog-option-selected .goog-menuitem-icon {
  background: url(./static/media/sprites.png) no-repeat -48px -16px !important;
}

/* 左边的导航条 */
.blocklyToolboxDiv {
  border-top: 1px solid hsla(0, 0%, 0%, 0.15);
  border-right: 1px solid hsla(0, 0%, 0%, 0.15);
}

.blocklyToolboxDiv::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 4px;
  /*高宽分别对应横竖滚动条的尺寸*/
  height: 4px;
}

.blocklyTreeRoot {
  width: 66px;
}

/* .blocklyTreeRoot:focus {
  outline: none;
} */

.blocklyTreeRow {
  height: 60px;
  line-height: 32px;
  margin-bottom: 3px;
  padding-right: 8px;
  white-space: nowrap;
}

.blocklyHorizontalTree {
  float: left;
  margin: 1px 5px 8px 0;
}

.blocklyHorizontalTreeRtl {
  float: right;
  margin: 1px 0 8px 5px;
}

.blocklyToolboxDiv[dir="RTL"] .blocklyTreeRow {
  margin-left: 8px;
}

.blocklyTreeRow:not(.blocklyTreeSelected):hover {
  background-color: #e4e4e4;
}

.blocklyTreeSeparator {
  border-bottom: solid #e5e5e5 1px;
  height: 0;
  margin: 5px 0;
}

.blocklyTreeSeparatorHorizontal {
  border-right: solid #e5e5e5 1px;
  width: 0;
  padding: 5px 0;
  margin: 0 5px;
}

.blocklyTreeIcon {
  background-image: url(./static/media/sprites.png);
  height: 16px;
  vertical-align: middle;
  width: 16px;
}

.blocklyTreeIconClosedLtr {
  background-position: -32px -1px;
}

.blocklyTreeIconClosedRtl {
  background-position: 0px -1px;
}

.blocklyTreeIconOpen {
  background-position: -16px -1px;
}

.blocklyTreeSelected>.blocklyTreeIconClosedLtr {
  background-position: -32px -17px;
}

.blocklyTreeSelected>.blocklyTreeIconClosedRtl {
  background-position: 0px -17px;
}

.blocklyTreeSelected>.blocklyTreeIconOpen {
  background-position: -16px -17px;
}

.blocklyTreeIconNone,
.blocklyTreeSelected>.blocklyTreeIconNone {
  background-position: -48px -1px;
}

.blocklyTreeLabel {
  cursor: default;
  font-size: 0.8rem;
  display: block;
  text-align: center;
}

.blocklyTreeLabel.cat {
  margin: 0 auto;
}

.blocklyTreeSelected .blocklyTreeLabel {
  color: #4C97FF;
}

.blocklyWidgetDiv .goog-palette {
  outline: none;
  cursor: default;
}

.blocklyWidgetDiv .goog-palette-table {
  border: 1px solid #666;
  border-collapse: collapse;
}

.blocklyWidgetDiv .goog-palette-cell {
  height: 13px;
  width: 15px;
  margin: 0;
  border: 0;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid #666;
  font-size: 1px;
}

.blocklyWidgetDiv .goog-palette-colorswatch {
  position: relative;
  height: 13px;
  width: 15px;
  border: 1px solid #666;
}

.blocklyWidgetDiv .goog-palette-cell-hover .goog-palette-colorswatch {
  border: 1px solid #FFF;
}

.blocklyWidgetDiv .goog-palette-cell-selected .goog-palette-colorswatch {
  border: 1px solid #000;
  color: #fff;
}

.blocklyWidgetDiv .goog-menu {
  background: #fff;
  border-color: #ccc #666 #666 #ccc;
  border-style: solid;
  border-width: 1px;
  cursor: default;
  font: normal 13px Arial, sans-serif;
  margin: 0;
  outline: none;
  padding: 4px 0;
  position: absolute;
  overflow: visible !important;
  max-height: 100%;
  z-index: 20000;
}

.blocklyWidgetDiv .goog-menuitem {
  color: #000;
  font: normal 13px Arial, sans-serif;
  list-style: none;
  margin: 0;
  padding: 4px 7em 4px 28px;
  white-space: nowrap;
}

.blocklyWidgetDiv .goog-menuitem.goog-menuitem-rtl {
  padding-left: 7em;
  padding-right: 28px;
}

.blocklyWidgetDiv .goog-menu-nocheckbox .goog-menuitem,
.blocklyWidgetDiv .goog-menu-noicon .goog-menuitem {
  padding-left: 12px;
}

.blocklyWidgetDiv .goog-menu-noaccel .goog-menuitem {
  padding-right: 20px;
}

.blocklyWidgetDiv .goog-menuitem-content {
  color: #000;
  font: normal 13px Arial, sans-serif;
}

.blocklyWidgetDiv .goog-menuitem-disabled .goog-menuitem-accel,
.blocklyWidgetDiv .goog-menuitem-disabled .goog-menuitem-content {
  color: #ccc !important;
}

.blocklyWidgetDiv .goog-menuitem-disabled .goog-menuitem-icon {
  opacity: 0.3;
  -moz-opacity: 0.3;
  filter: alpha(opacity=30);
}

.blocklyWidgetDiv .goog-menuitem-highlight,
.blocklyWidgetDiv .goog-menuitem-hover {
  background-color: #d6e9f8;
  border-color: #d6e9f8;
  border-style: dotted;
  border-width: 1px 0;
  padding-bottom: 3px;
  padding-top: 3px;
}

.blocklyWidgetDiv .goog-menuitem-checkbox,
.blocklyWidgetDiv .goog-menuitem-icon {
  background-repeat: no-repeat;
  height: 16px;
  left: 6px;
  position: absolute;
  right: auto;
  vertical-align: middle;
  width: 16px;
}

.blocklyWidgetDiv .goog-menuitem-rtl .goog-menuitem-checkbox,
.blocklyWidgetDiv .goog-menuitem-rtl .goog-menuitem-icon {
  left: auto;
  right: 6px;
}

.blocklyWidgetDiv .goog-option-selected .goog-menuitem-checkbox,
.blocklyWidgetDiv .goog-option-selected .goog-menuitem-icon {
  background: url(//ssl.gstatic.com/editor/editortoolbar.png) no-repeat -512px 0;
}

.blocklyWidgetDiv .goog-menuitem-accel {
  color: #999;
  direction: ltr;
  left: auto;
  padding: 0 6px;
  position: absolute;
  right: 0;
  text-align: right;
}

.blocklyWidgetDiv .goog-menuitem-rtl .goog-menuitem-accel {
  left: 0;
  right: auto;
  text-align: left;
}

.blocklyWidgetDiv .goog-menuitem-mnemonic-hint {
  text-decoration: underline;
}

/* 下面是左边导航栏的样式 */
/**************************************************************************************************/

.blocklySvg {

  outline: none;
  position: absolute;
  display: block;
}

.blocklyRelativeWrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.injectionDiv {
  height: 100%;
  position: relative;
  touch-action: none
}

.blocklyNonSelectable {
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.blocklyWidgetDiv.fieldTextInput {
  overflow: visible !important;
  border: 1px solid;
  box-sizing: border-box;
  transform-origin: 0 0;
  -ms-transform-origin: 0 0;
  -moz-transform-origin: 0 0;
  -webkit-transform-origin: 0 0;
}

.blocklyWidgetDiv.fieldTextInput.removableTextInput {
  overflow: visible !important;
}

.blocklyTextDropDownArrow {
  position: absolute;

}

.blocklyTextRemoveIcon {
  position: absolute;
  width: 24px;
  height: 24px;
  top: -40px;
  left: 50%;
  margin-left: -12px;
  cursor: pointer;
  transform: translate(8, 60);
}

.blocklyNonSelectable {
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.blocklyWsDragSurface {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

.blocklyWsDragSurface.blocklyOverflowVisible {
  overflow: visible;
}

.blocklyBlockDragSurface {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: visible !important;
  z-index: 50;
}

.blocklyTooltipDiv {
  background-color: #ffffc7;
  border: 1px solid #ddc;
  box-shadow: 4px 4px 20px 1px rgba(0, 0, 0, .15);
  color: #000;
  display: none;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-size: 9pt;
  opacity: 0.9;
  padding: 2px;
  position: absolute;
  z-index: 100000;
}

.blocklyDropDownDiv {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  display: none;
  border: 1px solid;
  border-radius: 4px;
  box-shadow: 0px 0px 8px 1px rgba(0, 0, 0, .3);
  padding: 4px;
  -webkit-user-select: none;
  min-height: 15px
}

.blocklyDropDownContent {
  max-height: 300px;
  overflow: auto;
}

/* 设置按钮指向颜色 */
.buy {
  fill: rgb(123, 123, 123);
}


.blocklyBlockCanvas>.data {
  transform: translate(250, 50);
}

.blocklyDropDownArrow {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  z-index: -1;
  background-color: inherit;
  border-color: inherit;
}

.blocklyDropDownButton {
  display: inline-block;
  padding: 0;
  margin: 4px;
  border-radius: 4px;
  outline: none;
  border: 1px solid;
  transition: box-shadow .1s;
  cursor: pointer;
}

.blocklyDropDownButtonHover {
  box-shadow: 0px 0px 0px 4px rgba(0, 0, 0, 0.1);
}

.blocklyDropDownButton:active {
  box-shadow: 0px 0px 0px 6px rgba(0, 0, 0, 0.1);
}

.blocklyDropDownButton>img {
  width: 80%;
  height: 80%;
  margin-top: 5%
}

.blocklyDropDownPlaceholder {
  display: inline-block;
  padding: 0;
  margin: 4px;
}

.blocklyNumPadButton {
  display: inline-block;
  padding: 0;
  width: 48px;
  height: 48px;
  margin: 4px;
  border-radius: 4px;
  background: #547AB2;
  color: #FFFFFF;
  outline: none;
  border: 1px solid #435F91;
  cursor: pointer;
  font-weight: 600;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-size: 12pt;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.blocklyNumPadButton>img {
  margin-top: 10%;
  width: 80%;
  height: 80%;
}

.blocklyNumPadButton:active {
  background: #435F91;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.arrowTop {
  border-top: 1px solid;
  border-left: 1px solid;
  border-top-left-radius: 4px;
  border-color: inherit;
}

.arrowBottom {
  border-bottom: 1px solid;
  border-right: 1px solid;
  border-bottom-right-radius: 4px;
  border-color: inherit;
}

.valueReportBox {
  min-width: 50px;
  max-width: 300px;
  max-height: 200px;
  overflow: visible !important;
  word-wrap: break-word;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-size: .8em;
}

.blocklyResizeSE {
  cursor: se-resize;
  fill: #aaa;
}

.blocklyResizeSW {
  cursor: sw-resize;
  fill: #aaa;
}

.blocklyResizeLine {
  stroke: #888;
  stroke-width: 1;
}

.blocklyHighlightedConnectionPath {
  fill: none;
  stroke: #fc3;
  stroke-width: 4px;
}

/* 修改全局的块颜色 */
.blocklyPath {
  stroke-width: 1px;
  stroke: rgb(255, 255, 255);
}


.blocklySelected>.blocklyPathLight {
  display: none;
}

.blocklyDragging {
  cursor: url("/static/blocks-media/handclosed.cur"), auto;
  cursor: grabbing;
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
}

.blocklyDraggable:active {
  cursor: url("/static/blocks-media/handclosed.cur"), auto;
  cursor: grabbing;
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
}

.blocklyBlockDragSurface .blocklyDraggable {
  cursor: url("/static/blocks-media/handclosed.cur"), auto;
  cursor: grabbing;
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
}

.blocklyDragging.blocklyDraggingDelete {
  cursor: url("/static/blocks-media/handdelete.cur"), auto;
}

.blocklyDragging.blocklyDraggingMouseThrough {
  pointer-events: none;
}

.blocklyToolboxDelete {
  cursor: url("/static/blocks-media/handdelete.cur"), auto;
}


.blocklyDragging>.blocklyPath,
.blocklyDragging>.blocklyPathLight {
  fill-opacity: 1.0;
  stroke-opacity: 1.0;
}


.blocklyDisabled>.blocklyPath {
  fill-opacity: .5;
  stroke-opacity: .5;
}

.blocklyInsertionMarker>.blocklyPath {
  stroke: none;
}

/* 调试block字体样式 */
.blocklyText {
  fill: #fff;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-size: 15pt;
  font-weight: 500;
}

.blocklyTextTruncated {
  font-size: 11pt;
  transform: translate(8, 60);
}

.blocklyNonEditableText>text {
  pointer-events: none;
}


.blocklyEditableText>.blocklyEditableLabel {
  fill: #000000;
}

.blocklyEditableText>.blocklyText{
  fill: #000000;
}


.blocklyBubbleText {
  fill: #575E75;
}

.blocklyFlyout {
  position: absolute;
  z-index: 20;

}

.blocklyFlyout:hover {
  overflow: initial;
}

.blocklyFlyoutButton {
  fill: none;
  pointer-events: all;
}

.blocklyFlyoutButtonBackground {
  stroke: #c6c6c6;
}

.blocklyFlyoutButton .blocklyText {
  fill: #575E75;
  transform: translate(8, 60);
}

.blocklyFlyoutButtonShadow {
  fill: transparent;
}

.blocklyFlyoutButton:hover {
  fill: white;
  cursor: pointer;
}

.blocklyFlyoutLabel {
  cursor: default;
}

.blocklyFlyoutLabelBackground {
  opacity: 0;
}

.blocklyFlyoutLabelText {
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-size: 14pt;
  fill: #575E75;
  font-weight: bold;
}

.blocklySvg text,
.blocklyBlockDragSurface text,
.blocklyFlyout text,
.blocklyToolboxDiv text {
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  cursor: inherit;
}

.blocklyHidden {
  display: none;
}

.blocklyFieldDropdown:not(.blocklyHidden) {
  display: block;
}

.blocklyIconGroup {
  cursor: default;
}

.blocklyIconGroup:not(:hover),
.blocklyIconGroupReadonly {
  opacity: .6;
}

.blocklyIconShape {
  fill: #00f;
  stroke: #fff;
  stroke-width: 1px;
}

.blocklyIconSymbol {
  fill: #fff;
}

.blocklyMinimalBody {
  margin: 0;
  padding: 0;
}

.blocklyCommentForeignObject {
  position: relative;
  z-index: 0;
}

.blocklyCommentRect {
  fill: #E7DE8E;
  stroke: #bcA903;
  stroke-width: 1px
}

.blocklyCommentTarget {
  fill: transparent;
  stroke: #bcA903;
}

.blocklyCommentTargetFocused {
  fill: none;
}

.blocklyCommentHandleTarget {
  fill: none;
}

.blocklyCommentHandleTargetFocused {
  fill: transparent;
}

.blocklyFocused>.blocklyCommentRect {
  fill: #B9B272;
  stroke: #B9B272;
}

.blocklySelected>.blocklyCommentTarget {
  stroke: #fc3;
  stroke-width: 3px;
}

.blocklyCommentTextarea {
  background-color: #fef49c;
  border: 0;
  outline: 0;
  margin: 0;
  padding: 3px;
  resize: none;
  display: block;
  overflow: visible !important;
}

.blocklyCommentDeleteIcon {
  cursor: pointer;
  fill: #000;
  display: none
}

.blocklySelected>.blocklyCommentDeleteIcon {
  display: block
}

.blocklyDeleteIconShape {
  fill: #000;
  stroke: #000;
  stroke-width: 1px;
}

.blocklyDeleteIconShape.blocklyDeleteIconHighlighted {
  stroke: #fc3;
}

.scratchCommentForeignObject {
  position: relative;
}

.scratchCommentBody {
  background-color: #fef49c;
}

.scratchCommentRect {
  fill: #fef49c;
}

.scratchCommentTarget {
  fill: transparent;
}

.scratchWorkspaceCommentBorder {
  stroke: #bcA903;
  stroke-width: 1px;
}

.scratchCommentTargetFocused {
  fill: none;
}

.scratchCommentTopBar {
  fill: #000000;
  fill-opacity: 0.1
}

.scratchCommentText {
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-size: 12pt;
  font-weight: 400;
}

.scratchCommentTextarea {
  background-color: #fef49c;
  border: 0;
  outline: 0;
  padding: 0;
  resize: none;
  overflow: visible !important;
}

.scratchCommentResizeSE {
  cursor: se-resize;
  fill: transparent;
}

.scratchCommentResizeSW {
  cursor: sw-resize;
  fill: transparent;
}

.blocklyHtmlInput {
  border: none;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-size: 14pt !important;
  height: 100%;
  margin: 0;
  outline: none;
  box-sizing: border-box;
  width: 100%;
  text-align: center;
  color: #575E75;
  font-weight: 500;
}

.blocklyMainBackground {
  stroke-width: 1;
  stroke: #c6c6c6;
}

.blocklyFlyoutBackground {
  fill: #F9F9F9;

}

.blocklyMainWorkspaceScrollbar {
  z-index: 20;
}

.blocklyFlyoutScrollbar {
  z-index: 30;
}

.blocklyScrollbarHorizontal,
.blocklyScrollbarVertical {
  position: absolute;
  outline: none;
}

.blocklyScrollbarBackground {
  opacity: 0;
}

.blocklyScrollbarHandle {
  fill: #CECDCE;
  opacity: 0;
}


.blocklyZoom>image {
  opacity: 1;
}

.blocklyFlyout .blocklyScrollbarHandle {
  fill: #bbb;
}

.blocklyFlyout .blocklyScrollbarBackground:hover+.blocklyScrollbarHandle,
.blocklyFlyout .blocklyScrollbarHandle:hover {
  fill: #aaa;
}

.blocklyInvalidInput {
  background: #faa;
}

.blocklyAngleCircle {
  stroke: #3373CC;
  stroke-width: 1;
  fill: #4280D7;
}

.blocklyAngleCenterPoint {
  stroke: #fff;
  stroke-width: 1;
  fill: #fff;
}

.blocklyAngleDragHandle {
  stroke: #fff;
  stroke-width: 5;
  stroke-opacity: 0.25;
  fill: #fff;
  cursor: pointer;
}

.blocklyAngleDragArrow {
  pointer-events: none
}

.blocklyAngleMarks {
  stroke: #fff;
  stroke-width: 1;
  stroke-opacity: 0.5;
}

.blocklyAngleGauge {
  fill: #fff;
  fill-opacity: 0.20;
}

.blocklyAngleLine {
  stroke: #fff;
  stroke-width: 1;
  stroke-linecap: round;
  pointer-events: none;
}

.blocklyContextMenu {
  border-radius: 4px;
}

.blocklyDropdownMenu {
  padding: 0 !important;
}

.blocklyDropDownNumPad {
  background-color: #547AB2;
}

.blocklyWidgetDiv .goog-option-selected .goog-menuitem-checkbox,
.blocklyWidgetDiv .goog-option-selected .goog-menuitem-icon {
  background: url(/static/blocks-media/sprites.png) no-repeat -48px -16px !important;
}

.blocklyToolboxDiv {
  background-color: #FFFFFF;
  color: #575E75;
  position: absolute;
  overflow: scroll;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  z-index: 40;
  -webkit-tap-highlight-color: transparent;
}

.blocklyTreeRoot {
  padding: 4px 0;
}

.blocklyTreeRoot:focus {
  outline: none;
}

.blocklyTreeRow {
  height: 22px;
  line-height: 22px;
  margin-bottom: 3px;
  padding-right: 8px;
  white-space: nowrap;
}

.blocklyHorizontalTree {
  float: left;
  margin: 1px 5px 8px 0;
}

.blocklyHorizontalTreeRtl {
  float: right;
  margin: 1px 0 8px 5px;
}

.blocklyToolboxDiv[dir="RTL"] .blocklyTreeRow {
  margin-left: 8px;
}

.blocklyTreeRow:not(.blocklyTreeSelected):hover {
  background-color: #e4e4e4;
}

.blocklyTreeSeparator {
  border-bottom: solid #e5e5e5 1px;
  height: 0;
  margin: 5px 0;
}

.blocklyTreeSeparatorHorizontal {
  border-right: solid #e5e5e5 1px;
  width: 0;
  padding: 5px 0;
  margin: 0 5px;
}

.blocklyTreeIcon {
  background-image: url(/static/blocks-media/sprites.png);
  height: 16px;
  vertical-align: middle;
  width: 16px;
}

.blocklyTreeIconClosedLtr {
  background-position: -32px -1px;
}

.blocklyTreeIconClosedRtl {
  background-position: 0px -1px;
}

.blocklyTreeIconOpen {
  background-position: -16px -1px;
}

.blocklyTreeSelected>.blocklyTreeIconClosedLtr {
  background-position: -32px -17px;
}

.blocklyTreeSelected>.blocklyTreeIconClosedRtl {
  background-position: 0px -17px;
}

.blocklyTreeSelected>.blocklyTreeIconOpen {
  background-position: -16px -17px;
}

.blocklyTreeIconNone,
.blocklyTreeSelected>.blocklyTreeIconNone {
  background-position: -48px -1px;
}

.blocklyTreeLabel {
  cursor: default;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  padding: 0 3px;
  vertical-align: middle;
}

.blocklyToolboxDelete .blocklyTreeLabel {
  cursor: url("/static/blocks-media/handdelete.cur"), auto;
}

.blocklyTreeSelected .blocklyTreeLabel {
  color: #fff;
}

.blocklyDropDownDiv .goog-slider-horizontal {
  margin: 8px;
  height: 22px;
  width: 150px;
  position: relative;
  outline: none;
  border-radius: 11px;
  margin-bottom: 20px;
}

.blocklyDropDownDiv .goog-slider-horizontal .goog-slider-thumb {
  width: 26px;
  height: 26px;
  top: -1px;
  position: absolute;
  background-color: white;
  border-radius: 100%;
  -webkit-box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.15);
}

.scratchEyedropper {
  background: none;
  outline: none;
  border: none;
  width: 100%;
  text-align: center;
  border-top: 1px solid #ddd;
  padding-top: 5px;
  cursor: pointer;
}

.scratchColourPickerLabel {
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-size: 0.65rem;
  color: #575E75;
  margin: 8px;
}

.scratchColourPickerLabelText {
  font-weight: bold;
}

.scratchColourPickerReadout {
  margin-left: 10px;
}

.scratchMatrixButtonDiv {
  width: 50%;
  text-align: center;
  float: left;
}

.scratchNotePickerKeyLabel {
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-size: 0.75rem;
  fill: #575E75;
  pointer-events: none;
}

.blocklyWidgetDiv .goog-menu {
  background: #fff;
  border-color: #ccc #666 #666 #ccc;
  border-style: solid;
  border-width: 1px;
  cursor: default;
  font: normal 13px "Helvetica Neue", Helvetica, sans-serif;
  margin: 0;
  outline: none;
  padding: 4px 0;
  position: absolute;
  z-index: 20000;
}

.blocklyDropDownDiv .goog-menu {
  cursor: default;
  font: normal 13px "Helvetica Neue", Helvetica, sans-serif;
  outline: none;
  z-index: 20000;
}

.blocklyWidgetDiv .goog-menuitem {
  color: #000;
  font: normal 13px "Helvetica Neue", Helvetica, sans-serif;
  list-style: none;
  margin: 0;
  padding: 4px 7em 4px 28px;
  white-space: nowrap;
}

.blocklyDropDownDiv .goog-menuitem {
  color: #fff;
  font: normal 13px "Helvetica Neue", Helvetica, sans-serif;
  font-weight: bold;
  list-style: none;
  margin: 0;
  min-height: 24px;
  padding: 4px 7em 4px 28px;
  white-space: nowrap;
}

.blocklyWidgetDiv .goog-menuitem.goog-menuitem-rtl,
.blocklyDropDownDiv .goog-menuitem.goog-menuitem-rtl {
  padding-left: 7em;
  padding-right: 28px;
}

.blocklyWidgetDiv .goog-menu-nocheckbox .goog-menuitem,
.blocklyWidgetDiv .goog-menu-noicon .goog-menuitem,
.blocklyDropDownDiv .goog-menu-nocheckbox .goog-menuitem,
.blocklyDropDownDiv .goog-menu-noicon .goog-menuitem {
  padding-left: 12px;
}

.blocklyWidgetDiv .goog-menu-noaccel .goog-menuitem,
.blocklyDropDownDiv .goog-menu-noaccel .goog-menuitem {
  padding-right: 20px;
}

.blocklyWidgetDiv .goog-menuitem-content .blocklyDropDownDiv .goog-menuitem-content {
  color: #000;
  font: normal 13px "Helvetica Neue", Helvetica, sans-serif;
}

.blocklyWidgetDiv .goog-menuitem-disabled .goog-menuitem-accel,
.blocklyWidgetDiv .goog-menuitem-disabled .goog-menuitem-content,
.blocklyDropDownDiv .goog-menuitem-disabled .goog-menuitem-accel,
.blocklyDropDownDiv .goog-menuitem-disabled .goog-menuitem-content {
  color: #ccc !important;
}

.blocklyWidgetDiv .goog-menuitem-disabled .goog-menuitem-icon,
.blocklyDropDownDiv .goog-menuitem-disabled .goog-menuitem-icon {
  opacity: 0.3;
  -moz-opacity: 0.3;
  filter: alpha(opacity=30);
}

.blocklyWidgetDiv .goog-menuitem-highlight,
.blocklyWidgetDiv .goog-menuitem-hover {
  background-color: #d6e9f8;
  border-color: #d6e9f8;
  border-style: dotted;
  border-width: 1px 0;
  padding-bottom: 3px;
  padding-top: 3px;
}

.blocklyDropDownDiv .goog-menuitem-highlight,
.blocklyDropDownDiv .goog-menuitem-hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.blocklyWidgetDiv .goog-menuitem-checkbox,
.blocklyWidgetDiv .goog-menuitem-icon,
.blocklyDropDownDiv .goog-menuitem-checkbox,
.blocklyDropDownDiv .goog-menuitem-icon {
  background-repeat: no-repeat;
  height: 16px;
  left: 6px;
  position: absolute;
  right: auto;
  vertical-align: middle;
  width: 16px;
}

.blocklyWidgetDiv .goog-option-selected .goog-menuitem-checkbox,
.blocklyWidgetDiv .goog-option-selected .goog-menuitem-icon,
.blocklyDropDownDiv .goog-option-selected .goog-menuitem-checkbox,
.blocklyDropDownDiv .goog-option-selected .goog-menuitem-icon {
  background: url(/static/blocks-media/sprites.png) no-repeat -48px -16px !important;
  position: static;
  float: left;
  margin-left: -24px;
}

.blocklyWidgetDiv .goog-menuitem-rtl .goog-menuitem-checkbox,
.blocklyWidgetDiv .goog-menuitem-rtl .goog-menuitem-icon,
.blocklyDropDownDiv .goog-menuitem-rtl .goog-menuitem-checkbox,
.blocklyDropDownDiv .goog-menuitem-rtl .goog-menuitem-icon {
  float: right;
  margin-right: -24px;
}

.blocklyWidgetDiv .goog-menuitem-accel,
.blocklyDropDownDiv .goog-menuitem-accel {
  color: #999;
  direction: ltr;
  left: auto;
  padding: 0 6px;
  position: absolute;
  right: 0;
  text-align: right;
}

.blocklyWidgetDiv .goog-menuitem-rtl .goog-menuitem-accel,
.blocklyDropDownDiv .goog-menuitem-rtl .goog-menuitem-accel {
  left: 0;
  right: auto;
  text-align: left;
}

.blocklyWidgetDiv .goog-menuitem-mnemonic-hint,
.blocklyDropDownDiv .goog-menuitem-mnemonic-hint {
  text-decoration: underline;
}

.blocklyWidgetDiv .goog-menuitem-mnemonic-separator,
.blocklyDropDownDiv .goog-menuitem-mnemonic-separator {
  color: #999;
  font-size: 12px;
  padding-left: 4px;
}

.blocklyWidgetDiv .goog-menuseparator,
.blocklyDropDownDiv .goog-menuseparator {
  border-top: 1px solid #ccc;
  margin: 4px 0;
  padding: 0;
}

.blocklyFlyoutCheckbox {
  fill: white;
  stroke: #c8c8c8;
}

.blocklyFlyoutCheckbox.checked {
  fill: #4C97FF;
  stroke: #3373CC;
}

.blocklyFlyoutCheckboxPath {
  stroke: white;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scratchCategoryMenu {
  width: 60px;
  background: #FFFFFF;
  color: #575E75;
  font-size: 12px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.scratchCategoryMenuHorizontal {
  width: 100%;
  height: 50px;
  background: #FFFFFF;
  color: #575E75;
  font-size: .7em;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.scratchCategoryMenuHorizontal .scratchCategoryMenuRow {
  float: left;
  margin: 3px;
}

.scratchCategoryMenuItem {
  padding: 0.375rem 0px;
  cursor: pointer;
  text-align: center;
}

.scratchCategoryMenuHorizontal .scratchCategoryMenuItem {
  padding: 6px 5px;
}

/* 控制：hover背景色；左边导航条 */
.scratchCategoryMenuItem.categorySelected {
  background: #E9EEF2;
}

.scratchCategoryItemBubble {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 100%;
  margin: 0 auto 0.125rem;
  background-color: red;
}

.scratchCategoryItemIcon {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0 auto 0.125rem;
  background-size: 100%;
}

.scratchCategoryMenuItem:hover {
  color: #4C97FF !important;
}

.blocklyPath .blzocklyBlockBackground {
  fill: #FFFFFF;
}

.tou[data-argument-type=text]>.blocklyPath {
  fill: #FFFFFF;
}

.blocklyNonEditableText>text {
  pointer-events: none;
}

.blocklyEditableText:hover>rect {
  stroke: #000000;
  stroke-width: 2;
}
.blocklyEditableText[data-argument-type=text]>rect {
  fill: #fff;
}
.blocklyEditableText[data-argument-type=dropdown]>.blocklyText {
  fill: #FFFFFF;
}